###############################################
# XENOMORPH CAPTIVE PITS - menu opener edict
# Activating this edict opens the Captive Pits browse/interact menu,
# mirroring the Family Oriented mod's menu-via-edict pattern.
###############################################

xenomorph_captive_pits = {
	length = 0
	icon = "GFX_edict_type_policy"

	resources = {
		category = edicts
		cost = {
		}
	}

	potential = {
		exists = owner
		owner = {
			OR = {
				xeno_is_xenomorph_hive_country = yes
				AND = {
					is_gestalt = no
					any_owned_leader = { has_leader_flag = xeno_captured_leader }
				}
			}
		}
	}

	effect = {
		country_event = { id = xeno_captive.1 }
	}

	ai_weight = {
		weight = 0
	}
}
